package com.jiedeng.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author 覃远龙
 * @ClassName: WorkAgent
 * @Description:
 * @date 2017/10/17 17:41
 */
@Entity(name = "t_WorkAgent")
public class WorkAgent {

    @Id
    @Column(name = "Agent_ID", length = 100)
    private String id;

    @Column(name = "Person_ID")
    private long personID;

    @Column(name = "Agent_Person_ID")
    private long agentPersonID;

    @Column(name = "Start_Time")
    private Date startTime;

    @Column(name = "End_Time")
    private Date endTime;

    @Column(name = "IsEnable")
    private boolean isEnable;

    @Column(name = "Isonly")
    private boolean isOnly;

    @Column(name = "Module_ID")
    private int moduleID;

    @Column(name = "Params", length = 1000)
    private String params;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getPersonID() {
        return personID;
    }

    public void setPersonID(long personID) {
        this.personID = personID;
    }

    public long getAgentPersonID() {
        return agentPersonID;
    }

    public void setAgentPersonID(long agentPersonID) {
        this.agentPersonID = agentPersonID;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public boolean isOnly() {
        return isOnly;
    }

    public void setOnly(boolean only) {
        isOnly = only;
    }

    public int getModuleID() {
        return moduleID;
    }

    public void setModuleID(int moduleID) {
        this.moduleID = moduleID;
    }
}
